// let ecg_data = [
//     189, 185, 157, 118, 72, -24, -80, -94, -92, -85, -80, -79, -78, -75, -64, -57, -57, -46, -35, -45, -44, -37, -27,
//     -16, -12, -18, -18, -13, -12, -4, -13, 15, 56, 103, 116, 117, 97, 71, 20, -34, -35, -28, -17, -15, -18, -17, -12,
//     -76, -97, 316, 714, 723, 375, -156, -138, -82, -55, -55, -59, -54, -44, -38, -37, -41, -40, -35, -28, -29, -19, 67,
//     90, 133, 159, 184, 185, 179, 170, 157, 123, 75, 24, -82, -116, -119, -109, -89, -74, -52, -55, -57, -52, -66, -60,
//     -59, -54, -44, -37, -38, -32, -43,
// ]
let ecg_data = [
    1918, 1918, 1967, 2011, 2048, 2106, 2131, 2156, 2185, 2185, 2252, 2252, 2327, 2369, 2369, 2457, 2502, 2502, 2604,
    2663, 2663, 2729, 2804, 2889, 3074, 3173, 3272, 3371, 3371, 3557, 3643, 3724, 3798, 3863, 3919, 3967, 3967, 4007,
    4038, 4078, 4089, 4089, 4094, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095, 4095,
    4095, 4095, 4095, 4094, 4094, 4077, 4056, 4027, 4027, 3944, 3889, 3889, 3750, 3666, 3574, 3476, 3373, 3373, 3155,
    3155, 3042, 2928, 2813, 2696, 2459, 2346, 2346, 2138, 2138, 2044, 1876, 1807, 1807, 1701, 1665, 1665, 1620, 1620,
    1609, 1609, 1627, 1643, 1662,
]
// let ecg_data = [
//     63, 69, 73, 76, 77, 76, 75, 73, 71, 69, 66, 65, 63, 63, 62, 61, 60, 58, 57, 56, 54, 53, 51, 49, 47, 44, 43, 41, 39,
//     38, 36, 35, 33, 32, 31, 30, 29, 28, 27, 26, 26, 26, 29, 34, 42, 51, 59, 66, 71, 74, 75, 76, 75, 74, 72, 70, 68, 66,
//     64, 63, 62, 61,
// ]
// ecg_data = ecg_data.concat(ecg_data)

let min = ecg_data[0],
    max = ecg_data[0]
ecg_data.forEach((v) => {
    max = max > v ? max : v
    min = min < v ? min : v
})
console.log('most value', max, min)

export { ecg_data, min, max }
